<?php
// +----------------------------------------------------------------------
// | 后台函数文件
// +----------------------------------------------------------------------

function siteplus_menu(){
	return [
	    [
	      'title' => '<i class="iconfont icon-survey"></i> 插件',
	      'menu'  => [
	      	  ['id'=>1, 'pId'=>0, 'name'=>"考试管理", 'open'=>true],
	      	  ['id'=>2, 'pId'=>1, 'name'=>"题库管理", 'open'=>true],
	      	  ['id'=>20,'pId'=>2, 'name'=>"题库类型", 'url'=>"/plus_exam/category/index","target"=>"iframe"],
        	  ['id'=>21,'pId'=>2, 'name'=>"单选题", 'url'=>"/plus_exam/question/index?type=1","target"=>"iframe"],
	      	  ['id'=>22,'pId'=>2, 'name'=>"多选题", 'url'=>"/plus_exam/question/index?type=2","target"=>"iframe"],
	      	  ['id'=>23,'pId'=>2, 'name'=>"判断题", 'url'=>"/plus_exam/question/index?type=3","target"=>"iframe"],
	      	  ['id'=>3, 'pId'=>1, 'name'=>"考试管理", 'open'=>true],
	      	  ['id'=>31,'pId'=>3, 'name'=>"考场管理", 'url'=>"/plus_exam/school/index","target"=>"iframe"],
	      	  ['id'=>32,'pId'=>3, 'name'=>"成绩统计", 'url'=>"/plus_exam/history/index","target"=>"iframe"],
	      	  ['id'=>33,'pId'=>3, 'name'=>"成绩管理", 'url'=>"/plus_exam/history/lists","target"=>"iframe"],
	      ]
	    ],
	     [
	      'title' => '<i class="iconfont icon-yonghu"></i> 会员',
	      'menu'  => [
	          ['id'=>1, 'pId'=>0, 'name'=>"用户管理",'open'=>true],
	          ['id'=>10, 'pId'=>1, 'name'=>"用户管理",'url'=>"/passport/user/index", "target"=>"iframe"],
	          ['id'=>11, 'pId'=>1, 'name'=>"画像管理",'url'=>"/passport/face/index", "target"=>"iframe"],
	      ]
	    ],	    
	    [
	      'title' => '<i class="iconfont icon-shezhi1"></i> 设置',
	      'menu'  => [
	          ['id'=>1, 'pId'=>0, 'name'=>"系统设置",'open'=>true],
	          ['id'=>10, 'pId'=>1, 'name'=>"管理员",'url'=>"/admin/user/index", "target"=>"iframe"],
	          ['id'=>11, 'pId'=>1, 'name'=>"权限组",'url'=>"/admin/group/index", "target"=>"iframe"],
	          ['id'=>12, 'pId'=>1, 'name'=>"权限节点",'url'=>"/admin/auth/index", "target"=>"iframe"],
	          ['id'=>3, 'pId'=>0, 'name'=>"数据库",'open'=>true],
	          ['id'=>31, 'pId'=>3, 'name'=>"优化修复",'url'=>"/admin/database/index", "target"=>"iframe"],
	      ]
	    ],
	];
}

